package com.gemme.gemme.util;

import java.util.HashMap;
import java.util.Set;

/**
 * @Author: yangcheng
 * @CreateDate: 2020/8/24 17:02
 */
public class HttpDrUtil {
    public static String addUrl(HashMap<String,Object> hashMap){
        String url = "";
        int i = 0;
        for(String key:hashMap.keySet())
        {
            if(i == 0){
                i ++;
                url = url + key + "=" + hashMap.get(key);
                continue;
            }

            url = url +"&"+ key + "=" + hashMap.get(key);
            System.out.println("Key: "+key+" Value: "+hashMap.get(key));
        }
        return url;
    }
}
